package mapper;

import POJO.Student;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface StudentMapper extends BaseMapper<Student> {
    Student selectStudentById(long id);

    @Select("select * from student where id > #{id}")
    Page<Student> selectByAge_page(Page<Student> page, long id);//自定义分页方法，page参数必须放在第一位

    String judgeString(@Param("string") String str);//测试mybatis字符串判断
}
